home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / www / http_log.lha / httplog.doc < prev    next >
Encoding:
Text File  |  1995-04-02  |  1.3 KB  |  41 lines

  1. Name:   httplog.c
  2. Usage:  Parsing ncsa(cern) httpd logfile
  3.  
  4. Author: (c) Armin Obersteiner
  5. EMail:  Armin.Obersteiner@giga.or.at
  6.  
  7. Description:
  8.  
  9.     USAGE: httplog [-s <keyword>] [-l] <logfile>
  10.  
  11.         <logfile>       -   httpd <logfile>
  12.         -l              -   long: country statistics
  13.         -lt             -   long: time statistics
  14.         -s <keyword>    -   search for <keyword>
  15.  
  16.  
  17.     compiles on:    MaxonC++ (amiga)
  18.                     gcc (amiga)
  19.                     gcc (bsd)
  20.     (it should actually compile on any platform then :)
  21.  
  22.  
  23.     it´s made to work on logfiles with american date format and austrian/german time format (24h)
  24.  
  25.     to adapt for other logfiles:
  26.       the first entry should be the site
  27.       the second entry is the date in brackets [ ]
  28.           to adapt this look in lines after "fopen"
  29.       to include new countries add lines to structure "struct dummy c"
  30.           don´t forget to increase "country_anz"
  31.       to adapt time and date do the same with "struct dummy d" / "struct dummy t"
  32.           don´t forget to increase/decrease "day_anz" :)  / "time_anz"
  33.       the second entry in these stuctures (dummy) is the string to search for
  34.           (use spaces or brackets, because it´s more reliable then)
  35.       the third entry is the string for output
  36.  
  37.  
  38. CU Armin :)
  39.  
  40.  
  41.